<?php

// 登出合作机构平台
// DELETE org.logout

namespace app\api\resource\org;
use think\Session;

class Logout
{
    // 方法
    public $_method = ['DELETE'];
    // 前置
    public $_pre    = [];
    // 描述
    public $_description = '登出合作机构平台';
    // 参数
    public $_param  = [];
    // 返回
    public $_return = [
        204 => '登出成功',
    ];

    public function run(&$request)
    {
        // 销毁SESSION
        Session::delete('org');

        return [204,''];
    }
}